package com.polaris.live.utils.zego

/**
 * LiveActivityIdentifier
 * @author Created by 天晴 on 2024/1/9 9:52
 * @since 1.0.0
 **/
enum class LiveActivityIdentifier(val value: Int) {
    NO_FCE(-1), //没有在任何界面
    HOME_RECOMMEND_FRAGMENT(0), //首页推荐
    LIVE_BROADCAST_FRAGMENT(1), //直播列表
    LIVE_SPECTATOR_ACTIVITY(2),  //观看直播
    CALL_VIDEO_ACTIVITY(3),   //打电话界面
    LIVE_VIDEO_ACTIVITY(4),   //主播直播界面
    MESSAGE_ACTIVITY(5),
    USER_SPACE_ACTIVITY(6) ;

    companion object {
        fun fromValue(value: Int): LiveActivityIdentifier = values().firstOrNull { it.value == value } ?: NO_FCE
    }
}